﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="details.aspx.vb" Inherits="Prototype.details" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
        Details page<br />
        <br />

        This page shows the details showreels for the selected 3D projection mapping 
        artist, such as artists comments and date of upload.<br />
        Artist name:
        <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" 
            DataSourceID="SqlDataSource2" DataKeyNames="ID">
            <Columns>
                <asp:BoundField DataField="ID" HeaderText="ID" InsertVisible="False" 
                    ReadOnly="True" SortExpression="ID" Visible="False" >
                <ControlStyle CssClass="artcolumn" />
                </asp:BoundField>
                <asp:BoundField DataField="Firstname" HeaderText=" " SortExpression="Firstname">
                <ControlStyle BorderStyle="None" CssClass="artcolumn" />
                <HeaderStyle CssClass="artcolumn" />
                <ItemStyle CssClass="artcolumn" />
                </asp:BoundField>
                <asp:BoundField DataField="Surname" HeaderText=" " SortExpression="Surname">
                <ControlStyle BorderStyle="None" CssClass="artcolumn" />
                <HeaderStyle CssClass="artcolumn" />
                <ItemStyle CssClass="artcolumn" />
                </asp:BoundField>
            </Columns>
        </asp:GridView>
        <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
            ConnectionString="<%$ ConnectionStrings:myPrototypeDatabase %>" 
            ProviderName="<%$ ConnectionStrings:myPrototypeDatabase.ProviderName %>" 
            
            SelectCommand="SELECT [ID], [Firstname], [Surname] FROM [Artists] WHERE ([ID] = ?)">
            <SelectParameters>
                <asp:QueryStringParameter Name="ID" QueryStringField="ArtistId" Type="Int32" />
            </SelectParameters>
        </asp:SqlDataSource>
        </p>
        <p>
            &nbsp;</p>
      
    <p>
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            DataSourceID="SqlDataSource1" AllowSorting="True">
            <Columns>
                <asp:BoundField DataField="Showreel" HeaderText="Showreel File Name" 
                    SortExpression="Showreel">
                <HeaderStyle CssClass="detailsgridheader" />
                </asp:BoundField>
                <asp:ImageField DataImageUrlField="Showreel" HeaderText="Showreel" 
                    NullImageUrl="~/Images/talklogo.jpg">
                       <%-- contrained width to 100px but not the height so that, unlike with the thumbnail, 
                       these images stay in the same proportion as the orignal DL --%>
                        <ControlStyle  Width="100px" /> 
                    <HeaderStyle CssClass="detailsgridheader" />
                   
                     <ItemStyle   Width="100px" Wrap="False" />
                </asp:ImageField>
                <asp:BoundField DataField="ArtComment" HeaderText="Artists Comment" 
                    SortExpression="ArtComment">
                <HeaderStyle CssClass="detailsgridheader" />
                </asp:BoundField>
                <asp:BoundField DataField="ArtistId" HeaderText="ArtistId" 
                    SortExpression="ArtistId" Visible="False" />
                <asp:BoundField DataField="DateUpdated" HeaderText="Date Updated" 
                    SortExpression="DateUpdated" DataFormatString="{0:MMMM d, yyyy}">
                <HeaderStyle CssClass="detailsgridheader" />
                </asp:BoundField>
            </Columns>
        </asp:GridView>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:myPrototypeDatabase %>" 
            ProviderName="<%$ ConnectionStrings:myPrototypeDatabase.ProviderName %>" 
            
            SelectCommand="SELECT [Showreel], [ArtistId], [ArtComment], [DateUpdated] FROM [Video] WHERE ([ArtistId] = ?)">
            <SelectParameters>
                <asp:QueryStringParameter Name="ArtistId" QueryStringField="ArtistId" 
                    Type="Int32" />
            </SelectParameters>
        </asp:SqlDataSource>
    </p>
    <p>
        &nbsp;</p>
<p>
    &nbsp;</p>
<p>
    &nbsp;</p>
<p>
    &nbsp;</p>
<p>
    &nbsp;</p>
</asp:Content>

